<template>
  <v-textarea
    v-model="tempValue"
    label="请输入url地址"
    outlined
    auto-grow
    rows="3"
    row-height="30"
  />
</template>

<script>
export default {
  name: 'AttrH5MusicSrc',
  props: {
    musicSrc: {
      type: String,
      default: ''
    }
  },
  data() {
    return {
      tempValue: ''
    }
  },
  watch: {
    musicSrc(val) {
      this.tempValue = val
    },
    tempValue() {
      this.$emit('update:musicSrc', this.tempValue)
    }
  },
  mounted() {
    this.tempValue = this.musicSrc
  }
}
</script>
